SQL Command Line (SQL*Plus) is a command-line tool for accessing Oracle Database XE. It enables you to enter and run SQL, PL/SQL, and SQL*Plus commands and ... Starting and Exiting SQL... · SQL Command Line... · Running Scripts From SQL...
Open a UNIX terminal. · At the command-line prompt, enter the SQL*Plus command in the form: $> sqlplus · When prompted, enter your Oracle9i username and password.
I'm able to execute your exact query by just making sure there is a semicolon at the end of my select statement. (Output is actual, connection params removed.)